// ======================================================================
// Copyright (C) 2013 Hell-Prototypes. / www.hellprototypes.com
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or (at
// your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
// ======================================================================
#ifndef DEFINE_H
#define DEFINE_H

#define MY_VID                  0x04B4
#define MY_PID                  0xFFFF

#define USB_BULK_EP_IN          0x86

#define FPGA_RECFG_CMD          ((char)0x3F)
#define FPGA_RESET_CMD          ((char)0x00)
#define FPGA_START_CMD          ((char)0x80)

typedef struct {
    int    size;    //ram size
    int    start;   //data start offset
    int    data_length;  // valid data lenghth
    //int    buffer_length;// raw data max length
    uchar  *p_buffer;
} t_circular_buffer;

#endif // DEFINE_H
